#include "MiscFunctions.h"

void mySeed() {srand((unsigned)time(NULL));}

float randRange(double min, double max) {
	return (float)(((float(rand()) / float(RAND_MAX)) * (max - min)) + min);
}

float degsin(float x) { return (float) sin(x * PI/180);}
float degcos(float x) { return (float) cos(x * PI/180);}
float degtan(float x) { return (float) tan(x * PI/180);}
float degasin(float x) { return asin(x)* (float)(180/PI);}
float degacos(float x) { return acos(x)* (float)(180/PI);}
float degatan(float x) { return atan(x)* (float)(180/PI);}